﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NawaData.Dao
{
    public class ProductsDao
    {
        public List<vmsa140_product_basic> getProductNames(string[] productIds)
        {
            using (var db = new nawaDbEntities())
            {
                var productNames = from p in db.vmsa140_product_basic
                                   where productIds.Contains(p.mmatno.Trim())
                                   select p;
                return productNames.ToList();
            }
        }
    }
}
